package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.ShotModel;
import com.ruoyi.system.mapper.ShotMapper;
import com.ruoyi.system.service.ShotService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Wangziyi
 * @date ：Created in 2023/12/17 17:30
 * @description：ToDo
 * @modified By：
 * @version: 1.0
 */
@Service
public class ShotServiceImpl extends ServiceImpl<ShotMapper,ShotModel> implements ShotService {

    @Override
    public List<ShotModel> queryShotsByTName(String tName) {
        LambdaQueryWrapper<ShotModel> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ShotModel::getStToolsName,tName);
        queryWrapper.eq(ShotModel::getIsDeleted,0);
        List<ShotModel> res = this.list(queryWrapper);
        return res;
    }
}
